package com.woniuxy.order.controller;


import com.woniuxy.commons.entity.Order;
import com.woniuxy.commons.entity.vo.ResultVo;

import com.woniuxy.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rmw
 * @date 2020/12/3 19:50
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/addOrder")
    @ResponseBody
    public ResultVo addOrder(Order order){

        return orderService.addOrder(order);
    }

}
